package com.jcwx.game.socket.codex;

import java.util.List;

import org.apache.mina.core.session.IoSession;

/**
 * 消息队列里的对象
 * 
 * @author Administrator
 */
public class QueueMessage {

	/** mina的iosession对象 */
	private IoSession ioSession;
	/** 消息的指令号 */
	private Short head;
	/** 消息头的编号 */
	private List<Object> body;

	public QueueMessage(IoSession ioSession, Short head, List<Object> body) {
		setIoSession(ioSession);
		setHead(head);
		setBody(body);
	}

	public IoSession getIoSession() {
		return ioSession;
	}

	public void setIoSession(IoSession ioSession) {
		this.ioSession = ioSession;
	}

	public Short getHead() {
		return head;
	}

	public void setHead(Short head) {
		this.head = head;
	}

	public List<Object> getBody() {
		return body;
	}

	public void setBody(List<Object> body) {
		this.body = body;
	}

}
